<?php
require_once '../practice/includes/db.php';

$file_name = $_FILES['avatar']['name'];

$source = $_FILES['avatar']['tmp_name'];
$dest = "uploads/$file_name";


// copy($source, $dest);

if($_FILES['avatar']['error'] == 0) {
	$is_moved = move_uploaded_file($source, $dest);
	if($is_moved){
		echo '<h4>Success !!!</h4>';
	} else {
		echo '<h4>Failure !!!</h4>';
	}
	
}



